# 正则表达式使用
# import re
#
# re.findall(pattern, string, flags=0)

# re.match(pattern, string, flags=0)
# re.search(pattern, string, flags=0)

# import re
#
# str = "hell0,my name is cendy"
#
# result = re.findall("cendy", str)
# print(result)

import re

s = 'hello world'
result = re.match('hello', s)
print(result.group(0))

# import re
#
# s = 'world hello'
# result = re.search('hello', s)
# print(result.group(0))
